package com.hqyj.dao;

import com.hqyj.pojo.TbHouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 房屋表 Mapper 接口
 * </p>
 *
 * @author gp
 * @since 2021-09-26
 */
@Repository
public interface TbHouseMapper extends BaseMapper<TbHouse> {

    @Select("select * from tb_house where owner_id = #{ownerId}")
    TbHouse getHouseByOwnerId(int ownerId);


}
